Skip to content

Bump styler from 1.11.0 to 1.12.1 - #83

Merged
g-andrade merged 1 commit into
mainfrom
dependabot/hex/styler-1.12.1
Aug 7, 2026
Merged

Bump styler from 1.11.0 to 1.12.1#83
g-andrade merged 1 commit into
mainfrom
dependabot/hex/styler-1.12.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 1, 2026

Copy link
Copy Markdown
Contributor

Bumps styler from 1.11.0 to 1.12.1.

Release notes

Sourced from styler's releases.

v1.12.0

Improvements

  • Pipes:
    • don't unpipe |> dbg, to help our friends who format-on-save and like throwing a quick dbg pipe in while debugging (h/t @​mhanberg)
    • optimize two DateTime.shift |> DateTime.shift into a single DateTime.shift when working with literal durations whose keys are disjoint
  • Write "not equal" one way only: not (a == b), !(a == b) => a != b (#251, h/t @​tomkonidas)
  • Deprecations: DateTime.add(dt, amount, unit) is rewritten to DateTime.shift(dt, unit: amount) for 1.17+ codebases. While not technically deprecated, Elixir docs recommend shift over add (#253, h/t @​tomkonidas)
  • DateTime.shift(dt, ..duration pairs..) now has its duration pairs shrunk like to_timeout
  • duration pair shrinking improved for precomputed values, for instance second: 86_400 => day: 1

Fixes

  • General improvements to comment handling across Styler (#254, h/t me and claude)
  • Fixed explicit-keyword-list merges not being rewritten to puts: Map/Keyword.merge([single: :key]) => Map/Keyword.put(:single, :key)
Changelog

Sourced from styler's changelog.

1.12.1

Fixes

  • leave DateTime.add(dt, val, :microsecond) untouched since DateTime.shift with microseconds requires a precision (#255, h/t @​janpieper)

1.12.0

Improvements

  • Pipes:
    • don't unpipe |> dbg, to help our friends who format-on-save and like throwing a quick dbg pipe in while debugging (h/t @​mhanberg)
    • optimize two DateTime.shift |> DateTime.shift into a single DateTime.shift when working with literal durations whose keys are disjoint
  • Write "not equal" one way only: not (a == b), !(a == b) => a != b (#251, h/t @​tomkonidas)
  • Deprecations: DateTime.add(dt, amount, unit) is rewritten to DateTime.shift(dt, unit: amount) for 1.17+ codebases. While not technically deprecated, Elixir docs recommend shift over add (#253, h/t @​tomkonidas)
  • DateTime.shift(dt, ..duration pairs..) now has its duration pairs shrunk like to_timeout
  • duration pair shrinking improved for precomputed values, for instance second: 86_400 => day: 1

Fixes

  • General improvements to comment handling across Styler (#254, h/t me and claude)
  • Fixed explicit-keyword-list merges not being rewritten to puts: Map/Keyword.merge([single: :key]) => Map/Keyword.put(:single, :key)
Commits
  • d4e362b v1.12.1
  • 1ae5a60 fix: do not rewrite DateTime.add(..., :microsecond) to shift. Closes #255
  • 95a104b v1.12.0
  • 9e60f7c Fix integers losing tokenized values in duration shrinking
  • 9b22d62 fix meta swap in duration shrinking logic
  • 2b01a16 run deprecations before pipes, so pipes can further shrink deprecations
  • 5bcee4e futher improve duration shrinking
  • 3268da0 fix shift |> shift not working when there are 3+ calls piped
  • a14a414 pipes: DateTime.shift(a) |> DateTime.shift(b) => DateTime.shift(a ++ b) when ...
  • 1788686 dont unpipe dbg pipes. h/t @​mhanberg
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [styler](https://github.com/adobe/elixir-styler) from 1.11.0 to 1.12.1.
- [Release notes](https://github.com/adobe/elixir-styler/releases)
- [Changelog](https://github.com/adobe/elixir-styler/blob/main/CHANGELOG.md)
- [Commits](adobe/elixir-styler@v1.11.0...v1.12.1)

---
updated-dependencies:
- dependency-name: styler
  dependency-version: 1.12.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file elixir Pull requests that update Elixir code labels Aug 1, 2026
@g-andrade
g-andrade merged commit eac4a59 into main Aug 7, 2026
20 checks passed
@g-andrade
g-andrade deleted the dependabot/hex/styler-1.12.1 branch August 7, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file elixir Pull requests that update Elixir code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant